-
Notifications
You must be signed in to change notification settings - Fork 72
Merge the experimental branch back to main #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
middleware step
Update examples/middleware/package.json Co-authored-by: James Anderson <[email protected]>
Update the lock file Format the files
- Rely on OpenNext to copy the static assets - Remove useless code in the worker - assets are served when path matches
Co-authored-by: Pete Bacon Darwin <[email protected]>
This is required to apply string replacement patches. Fixes #143
wrangler 3.93.0 has an updated unenv using the native workerd stream implementation. It fixes an issue with server actions. Ref: - #147 - unjs/unenv#363
…(experimental branch) (#166) * feat: rename the binary from "cloudflare" to "opennextjs-cloudflare" **BREAKING CHANGE**: After this change the old way of running the tool (e.g. `pnpm cloudflare`) no longer works. Going forward use the new binary name (e.g. `pnpm opennextjs-cloudflare`). See [#161](#161) * update experimental branch with binary name change
Pull the fix for #167
run workflow checks on experimental branch prs
Use ReadableStream.from instead of Readable.toWeb The latter triggers a "This ReadableStream is disturbed" error See cloudflare/workerd#3245
There is a "[unenv] fs.readdirSync is not implemented yet!" error to investigate
Does not build
Also add patching validation check
make sure all code patch steps are validated and improve the code patching validation by removing the validation for each single patch function and introducing a new `patchCodeWithValidations` that applies all the patches with validations all in a single place
* extract env vars from file system * combine variables from a global with the request-scoped env * inline build-time env vars in the worker script * for some reason the tests failed in the pipeline but not locally * switch between modes at runtime and apply on process.env * add test for referencing variables * use a .env.mjs file for the vars * Update packages/cloudflare/src/cli/build/patches/investigated/copy-package-cli-files.ts * move the merging to extractProjectEnvVars * rename secrets to nextEnvVars * add missing mode when retrieving value * add link to nextjs var load order * rename to compile * change function to read a single file * move the readEnvFile call inside the flatMap * remove process.env.node_env usage * add e2e test for env vars * move locations
Co-authored-by: conico974 <[email protected]>
🦋 Changeset detectedLatest commit: 2c0e57a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
The edge runtime is not supported yet
petebacondarwin
approved these changes
Dec 20, 2024
Co-authored-by: Pete Bacon Darwin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.